test:server.o read.o
	gcc server.o read.o -o test
read.o:read.c  read.h
	gcc -c read.c -o read.o
server.o:tcp_server.c
	gcc -c tcp_server.c -o server.o

.PHONY:clean
clean:
	-rm -rf *.o
	-rm test
